<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>margin-外边距</title>

    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: pink;
        }

        .one {
            margin-bottom: 20px;
        }
    </style>

</head>
<body>
    
    <h3>margin属性用于设置外边距，即控制盒子和盒子之间的距离</h3>

    <h3>margin-left:左外边距</h3>
    <h3>margin-right:右外边距</h3>
    <h3>margin-top:上外边距</h3>
    <h3>margin-bottom:下外边距</h3>
    <h3>margin和padding的简写一致</h3>

    <br><br>

    <div class="one">1</div>
    <div>2</div>

</body>
</html>